using System;
using Cmpp.Client.Cmpp3Message;

namespace Cmpp.Client {
    public class Cmpp3ResponseEventArgs<TResponse> : EventArgs where TResponse : Cmpp3Response {
        private readonly TResponse m_response;

        public Cmpp3ResponseEventArgs(Cmpp3Response response) {
            m_response = response as TResponse;
        }

        public Cmpp3ResponseEventArgs(TResponse response) {
            m_response = response;
        }
        public TResponse Response {
            get {
                return m_response;
            }
        }
    }
}